package com.ejbs;

import java.rmi.RemoteException;
import java.util.List;

import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

import com.negocio.NPais;

public class ESPaisBean implements SessionBean {
	private static final long serialVersionUID = 1L;
	private NPais npais;
	
	public ESPaisBean() {npais = new NPais();}
	public void ejbCreate() {}
	public void ejbActivate() throws EJBException, RemoteException {}
	public void ejbPassivate() throws EJBException, RemoteException {}
	public void ejbRemove() throws EJBException, RemoteException {}	
	public void setSessionContext(SessionContext arg0) throws EJBException,RemoteException {}
    

    public List listar() {
    	List lst = npais.listar();
    	System.out.println("retornando: " + lst.size());
        return lst;
    }
    
}
